From 5cb3fdeb843ed073fd9e6d00a0ddd2fb6dd0c678 Mon Sep 17 00:00:00 2001 From: Jehan Date: Mon, 4 Dec 2017 03:33:47 +0100 Subject: [PATCH] tests: not all UNIX-like OSes have a libpthread. In particular Android systems don't need to link with -lpthread (actually the link would fail with "ld: cannot find -lpthread"). Use the $(THREAD_LIB) variable which is set correctly during configure since commit c02af82. --- tests/Makefile.am | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 59bb296..98f4ae2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -34,13 +34,7 @@ TESTS = \ TESTS_ENVIRONMENT = LD_LIBRARY_PATH=$(top_builddir)/babl:$LD_LIBRARY_PATH GI_TYPELIB_PATH=$(top_builddir)/babl BABL_PATH=$(top_builddir)/extensions/.libs AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl -if OS_UNIX -AM_LDFLAGS = -lpthread -no-install -else - -AM_LDFLAGS = -no-install -endif - +AM_LDFLAGS = $(THREAD_LIB) -no-install LDADD = $(top_builddir)/babl/libbabl-@BABL_API_VERSION@.la \ $(MATH_LIB) $(THREAD_LIB) -- 2.30.2